//
//  MPCImageView+YYWebImage.h
//  Pods
//
//  Created by jiaxuzhou on 2017/7/24.
//
//

#import "MPCImageView.h"

NS_ASSUME_NONNULL_BEGIN

@interface MPCImageView (YYWebImage)

#if MPT_USE_SDWebImageSwitch

#else

- (void)yy_cancelCurrentImageLoadWithURL:(NSURL *)url;

- (UIImage *)yy_getCatcheMemoryImageWithImageURL:(NSURL *)imgUrl options:(MPWebImageOptions)options;

- (void)yy_getCatcheDiskImageWithImageURL:(NSURL *)imgUrl options:(MPWebImageOptions)options finish:(void (^)(UIImage *image))finish;

- (void)yy_downImageWithImageURL:(NSURL *)imgUrl
                         options:(MPWebImageOptions)options
                        progress:(MPWebImageDownloaderProgressBlock)progressBlock
                         success:(nullable MPWebImageSuccessBlock)success
                            fail:(nullable MPWebImageFailBlock)fail;

+ (void)yy_clearCatcheDisk:(void (^)())completion;

+ (void)yy_clearCatcheMemory;

#endif

@end

NS_ASSUME_NONNULL_END
